package utils

import (
	"net/http"
	"sync"

	"github.com/gorilla/websocket"
)

var Upgrader = websocket.Upgrader{
	CheckOrigin: func(r *http.Request) bool {
		// 允许所有来源的 WebSocket 连接
		return true

	},
}
var ClientsSocket = make(map[string]*websocket.Conn)
var ClientsMu sync.Mutex